package com.woniuxy.movice.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * entity：场次
 * @author Administrator
 *
 */
public class Rounds implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 5775707297364174433L;

	private Integer id;

    private Movie movie;//影片

    private Cinema cinema;//影院
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date pstart;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date pend;

    private BigDecimal pprice;

    private MovieHall movieHall;//影厅


    private String ytlayout;


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	public Movie getMovie() {
		return movie;
	}

	public void setMovie(Movie movie) {
		this.movie = movie;
	}

	public Cinema getCinema() {
		return cinema;
	}

	public void setCinema(Cinema cinema) {
		this.cinema = cinema;
	}

	public Date getPstart() {
		return pstart;
	}

	public void setPstart(Date pstart) {
		this.pstart = pstart;
	}

	public Date getPend() {
		return pend;
	}

	public void setPend(Date pend) {
		this.pend = pend;
	}

	public BigDecimal getPprice() {
		return pprice;
	}

	public void setPprice(BigDecimal pprice) {
		this.pprice = pprice;
	}

	public MovieHall getMovieHall() {
		return movieHall;
	}

	public void setMovieHall(MovieHall movieHall) {
		this.movieHall = movieHall;
	}

	public String getYtlayout() {
		return ytlayout;
	}

	public void setYtlayout(String ytlayout) {
		this.ytlayout = ytlayout;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	@Override
	public String toString() {
		return "Rounds [id=" + id + ", movie=" + movie + ", cinema=" + cinema + ", pstart=" + pstart + ", pend=" + pend
				+ ", pprice=" + pprice + ", movieHall=" + movieHall + ", ytlayout=" + ytlayout + "]";
	}

	

	

    
}